package OoDay02.Practice2;

public class Test {
    public static void main(String[] args) {
        Dog dog1=new Dog();
        dog1.name="小黑";
        dog1.age=2;
        dog1.color="黑";
        dog1.eat();
        dog1.drink();
        dog1.lookHome();

        Chick chick1=new Chick();
        chick1.name="小黄";
        chick1.age=1;
        chick1.color="黄";
        chick1.eat();
        chick1.drink();
        chick1.layEggs();

        Fish fish1=new Fish();
        fish1.age=4;
        fish1.color="白";
        fish1.name="小白";
        fish1.eat();
        fish1.drink();
    }

}
